<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 群组升级</li>
        </ul>
    </div>
    <div id="rightside" class="user_ability">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h3>群组升级</h3>
            </div>
            <div class="contentbox">
                <div class="extrabottom" style="height:auto;">
                    <form method="get" class="form-inline" role="form" action="admin.php">
                        <div class="input-prepend">
							<span class="add-on">群组</span>
							<input class="span2" id="prependedInput" type="text" placeholder="UID" name="gid" value="$gid" >
						</div>
                    	<label class="checkbox inline">
					    	【申请】<input type="checkbox" id="inlineCheckbox1" name='status' value='1' $statusArr[1]> 
						</label>
						<label class="checkbox inline">
					  		【已通过】<input type="checkbox" id="inlineCheckbox2" name='status' value='2' $statusArr[2]>
						</label>
                       	群组类别:
                       	<select name='label' class="span2" >
                       		<option selected>选择</option>
                            <option value="1" $labelArr[1]>家族</option>
                            <option value="2" $labelArr[2]>学院</option>
                        </select>
                        <select name="length" class="span2" >
                            <option value="20" $lengthArr[20]>每页显示20个</option>
                            <option value="50" $lengthArr[50]>每页显示50个</option>
                        </select> 
                       <input type="hidden" name="ac" value="manage_group" />
                       <input type="hidden" value="getApplyUpgradeGroups" name="op">
                       <button type="submit" class="btn btn-large"> 点击查询 </button>
                    </form>
                </div>
                <div style="clear: both;"></div>
                <table style="width:100%" class="table table-striped">
                    <thead>
                        <tr>
                            <th>GID</th>
                            <th>群组名</th>
                            <th>创建者</th>
                            <th>类别</th>
                            <th>群人数</th>
                            <th>等级</th>
                            <th>创建时间</th>
                            <th>认证</th>
                            <th style="width:100px">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!--{loop $result $value}-->
                        <tr>
                        	<td><span class="badge badge-important">{$value[gid]}</span></td>
                            <td>{$value[name]}</td>
                            <td><a href="admin.php?ac=user_profile&uid={$value[uid]}" target="_blank">{$value[creator][nickname]}</a></td>
                            <td>
                            	<!--{if $value['category']==1}--><span class="label label-info">情感</span><!--{/if}-->
				            	<!--{if $value['category']==2}--><span class="label label-info">活动</span><!--{/if}-->
				            	<!--{if $value['category']==3}--><span class="label label-info">美食</span><!--{/if}-->
				            	<!--{if $value['category']==4}--><span class="label label-info">晒货</span><!--{/if}-->
								<!--{if $value['category']==5}--><span class="label label-info">健康</span> <!--{/if}-->
								<!--{if $value['category']==6}--><span class="label label-info">美妆</span><!--{/if}-->
								<!--{if $value['category']==7}--><span class="label label-info">星座 </span><!--{/if}-->
								<!--{if $value['category']==8}--><span class="label label-info">美文</span><!--{/if}-->
								<!--{if $value['category']==9}--><span class="label label-info">摄影</span><!--{/if}-->
								<!--{if $value['category']==10}--><span class="label label-info">搞笑 </span><!--{/if}-->
								<!--{if $value['category']==11}--><span class="label label-info">娱乐</span><!--{/if}-->
								<!--{if $value['category']==12}--><span class="label label-info">运动</span><!--{/if}-->
								<!--{if $value['category']==13}--><span class="label label-info">亲子</span><!--{/if}-->
								<!--{if $value['category']==14}--><span class="label label-info">萌宠</span><!--{/if}-->
								<!--{if $value['category']==15}--><span class="label label-info">数码</span><!--{/if}-->
								<!--{if $value['category']==16}--><span class="label label-info">旅途</span><!--{/if}-->
								<!--{if $value['category']==17}--><span class="label label-info">汽车</span><!--{/if}-->
								<!--{if $value['category']==18}--><span class="label label-info">随笔</span><!--{/if}-->
								<!--{if $value['category']==19}--><span class="label label-info">小说</span><!--{/if}-->
								<!--{if $value['category']==20}--><span class="label label-info">动漫</span><!--{/if}-->
								<!--{if $value['category']==21}--><span class="label label-info">校园</span><!--{/if}-->
                            </td>
                            <td><b>{$value[member_num]}</b></td>
							<td>LV_{$value[level]}</td>
                            <td>
								<!--{date('Y-m-d H:i:s',$value[time])}-->
                            </td>
                            <td>
                                <!--{if $value[attribute] == 1}-->
                            		<span class="label label-success">家族群</span>
                            	<!--{elseif $value[attribute] == 2}-->
                            		<span class="label label-success">学院群</span>
                            	<!--{elseif $value[attribute] == 101}-->
                            		<span class="label label-warning">家族群申请中...</span>
                            	<!--{elseif $value[attribute] == 201}-->
                            		<span class="label label-warning">学院群申请中...</span>
                            	<!--{else}-->
	                            	<span class="label">未申请</span>
                            	<!--{/if}-->
                            </td>
                            <td>
                            	<!--{if $value[attribute] == 101}-->
                           			<a href="admin.php?ac=manage_group&op=setChatGroupAttribute&gid={$value[gid]}&status=1" target="_blank">同意(家族)</a>
                           		<!--{elseif $value[attribute] == 201}-->
                           			<a href="admin.php?ac=manage_group&op=setChatGroupAttribute&gid={$value[gid]}&status=2" target="_blank">同意(学院)</a>
                           		<!--{elseif $value[attribute] == 1 || $value[attribute] == 2}-->
                           			<a href="admin.php?ac=manage_group&op=setChatGroupAttribute&gid={$value[gid]}&status=0" target="_blank">取消认证</a>
                           		<!--{else}-->
                           			不可操作
                           		<!--{/if}-->
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
 				<div class="extrabottom">
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">首页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="$mpurl">第 {$page} 页/共 {$totalPages} 页</a></li>
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                            <li class="text"><a href="{$lastpurl}" title="">末页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
            </div>
        </div>


    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->